# Project: opencv test

CPP      = g++.exe -D__DEBUG__
OPENCV_LIBS = -L"D:/app/opencv/opencv/build/x64/mingw/lib"
LIBS     = $(OPENCV_LIBS) -L"D:/app/mingw64/lib" -L"D:/app/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0" -L"D:/app/mingw64/x86_64-w64-mingw32/lib" -g3 # -static
OPENCV_INCS = -I"D:/app/opencv/opencv/build/include"
CXXINCS  = $(OPENCV_INCS) -I"D:/app/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++" -I"D:/app/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward" -I"D:/app/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits" 
CXXFLAGS = $(CXXINCS) -Wall -Wextra -g3 
RM       = rm -f 
BIN      = cvtest.exe
OBJ      = main.o 
LINKOBJ  = main.o 

.PHONY: all clean 

all: $(BIN) 

clean: 
	${RM} $(OBJ) $(BIN) 

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) -lopencv_core490 -lopencv_highgui490 -lopencv_imgcodecs490

main.o: main.cpp
	$(CPP) -c main.cpp -o main.o $(CXXFLAGS) 
